home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 3.5 KB | 106 lines | [TEXT/GEOL] |
- Item 1770737 20-Feb-91 09:28PST
-
- From: MHARPER Babcock & Brown, Michael Harper,AST
-
- To: MACAPP.TECH$ MacApp Technical
-
- Item forwarded by PERRY.G to PHIL.TH
-
- ------------------------------------------------------------------------------
-
- Sub: RE>Custom MABuild Option
-
- Attn: MacApp Developers
- SentBy: Michael Harper
- Reply to: RE>Custom MABuild Option
- Ken,
-
- Good question. This will be going into the list of questions I am compiling
- for MADA.
-
- -----
- DISCLAIMER: I am a C/C++ programmer and thus haven't messed with Pascal in
- quite some time. Please forgive any mistakes in translation as it's the idea
- that counts, right? The C version is first, Pascal version is second.
- -----
-
- The way to accomplish a custom variable that is controlled by a compiler
- option is through conditional compilation. In C, this means add something
- like this to a header file (gleaned from "UMacAppUtilities.h" with a
- modification):
-
- #if qDemo
- const short qDemo = true;
- #else
- const short qDemo = false;
- #endif
-
- ... and then in your YourApp.MAMake file, you would add the following to your
- OtherCPlusOptions variable: "-d qDemo".
-
- Now, for Pascal, I'm not sure *WHERE* you'd put the code, but I offer the
- following translation into Pascal:
- const
- {$IFC qDemo}
- qDemo = true;
- {$ELSEC}
- qDemo = false;
- {$ENDC}
-
- <other constants>
-
- Then, in YourApp.MAMake, add the following to the variable OtherPascalOptions:
- "-d qDemo=true"
-
- Michael J. Harper
- Senior Software Developer
- Babcock & Brown, Inc.
- AppleLink: MHARPER
- babcock!mharper@uunet.uu.net
- --------------------------------------
- Date: 2/19/91
- To: Michael Harper
- From: AnaMatrix, Jerry Sargent,PAS
- Custom MABuild Option:
-
- In my code I frequently use the statment "If qDebug Then ...;". Is there a way
- that I can have my own variable and pass it to the compiler on the MABuild
- command line? For example, I would like to define a qDemo variable that will
- compile a demo version of my program and create a ".Demo Files" folder for me,
- just like it creates ".Debug Files" and ".Non-Debug Files."
-
- If you can offer some advice, please link me at address "ENSIGN". Thanks,
-
- Ken Auton
-
-
- ------------------ RFC822 Header Follows ------------------
- Received: by sfmac2sun; 19 Feb 91 20:01:21 U
- Received: from uunet.UUCP by babcock.sf.bb.com (4.0/SMI-4.0)
- id AA07620; Tue, 19 Feb 91 20:03:11 PST
- Received: from PO2.ANDREW.CMU.EDU by uunet.UU.NET (5.61/1.14) with SMTP
- id AA02405; Tue, 19 Feb 91 22:04:06 -0500
- Received: by po2.andrew.cmu.edu (5.54/3.15) id <AA12543> for
- babcock!mharper@uunet.uu.net; Tue, 19 Feb 91 22:03:39 EST
- Received: via switchmail for macapptech+@andrew.cmu.edu;
- Tue, 19 Feb 91 22:03:33 -0500 (EST)
- Received: from po2.andrew.cmu.edu via qmail
- ID </afs/andrew.cmu.edu/service/mailqs/q003/QF.gbkSOPe00jZdAkvk4A>;
- Tue, 19 Feb 91 22:02:02 -0500 (EST)
- Received: from apple.com by po2.andrew.cmu.edu (5.54/3.15) id <AA12522> for
- macapptech+; Tue, 19 Feb 91 22:01:36 EST
- Received: from [90.1.0.10] by apple.com with SMTP (5.61/25-eef)
- id AA06764; Tue, 19 Feb 91 18:49:25 -0800
- for macapptech+@andrew.cmu.edu
- Received: by goofy.apple.com (5.61/25-eef)
- id AA02513; Tue, 19 Feb 91 18:41:46 -0800
- for
- Message-Id: <6611496@AppleLink.Apple.COM>
- Subject: Custom MABuild Option?
- To: MACAPP.TECH$@applelink.apple.com (MacApp Technical)
- From: uunet!applelink.apple.com!ENSIGN (AnaMatrix, Jerry Sargent,PAS)
- Date: 19 Feb 91 23:21 GMT
-
-
-
-